using System;
using Castle.ActiveRecord;
namespace Models
{

  [ActiveRecord(Table="track_ConsumptionMesurement")]
	public class ConsumptionMesurement : ActiveRecordBase<ConsumptionMesurement>
	{

		public ConsumptionMesurement()
		{

		}
		[PrimaryKey]
		public int Id
		{
			get;
			set;
		}
		[Property]
		public DateTime StartDate
		{
			get;
			set;
		}
		[Property]
		public DateTime EndDate
		{
			get;
			set;
		}
		[Property]
		public double Amount
		{
			get;
			set;
		}
		[BelongsTo( "UserId" )]
		public aspnet_User aspnet_Users
		{
			get;
			set;
		}
	[BelongsTo( "MeterId" )]
	public Meter Meter
	{
		get;
		set;
	}

	}
}
